﻿using System.Linq;
using System.Data;
using System.Collections.Generic;
using T.ServiceComponent.DAC.Service;
using T.FAS.Runtime.Base.Entity;

namespace T.FAS.Runtime.Base.Dao
{
    public class QueryPlanConfigDao : DaoService<QueryPlanConfig>
    {
        public override string TableName => "FAS_QueryPlanConfig";
        public override string IDColumnName => "ID";

        public QueryPlanConfigDao() : base() { DBName = "TFAS"; }

        public List<QueryPlanConfig> GetQueryPlanConfigs()
        {
            List<object> tmp = this.GetObjectsByFilter("1=1");
            return tmp?.Select(t => t as QueryPlanConfig).ToList();
        }
    }
}